#!/bin/bash
num=$1
if [ -z $num ];then
 echo "please input num"
 exit
fi

while [ $num -gt 0 ]
do
   echo "$num"
   num=$[ $num - 1 ]
done
